//
//  LiQuanCollectionViewCell.m
//  YYPHSpeedJump
//
//  Created by speedjump on 16/3/28.
//  Copyright © 2016年 sujiang. All rights reserved.
//

#import "LiQuanCollectionViewCell.h"

@implementation LiQuanCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setModel:(TicketModel *)model
{
     NSArray *timeArr = [model.ticket_deadline componentsSeparatedByString:@" "];
    self.timeLabel.text = [NSString stringWithFormat:@"有效期至:%@", timeArr[0]];
    if (model.ticket_id.integerValue == 1) {
        self.liquanImage.image = [UIImage imageNamed:@"1y"];
    } else {
        self.liquanImage.image = [UIImage imageNamed:@"20y"];
    }
    //NSLog(@"number = %@",model.num);
   
}
@end
